import { Foo } from 'Foo';
import Bar from 'Bar';
type T = Foo;
const x: Bar = 1;

import Type from 'foo';
type T = typeof Type;
type T = typeof Type.foo;

import { Type } from 'foo';
type T = typeof Type;
type T = typeof Type.foo;

import * as Type from 'foo';
type T = typeof Type;
type T = typeof Type.foo;

import * as Type from 'foo' assert { type: 'json' };
const a: typeof Type = Type;

import Type from 'foo';
export { Type }; // is a type-only export
export default Type; // is a type-only export
export type { Type }; // is a type-only export

import { Type } from 'foo';
export { Type }; // is a type-only export
export default Type; // is a type-only export
export type { Type }; // is a type-only export

import * as Type from 'foo';
export { Type }; // is a type-only export
export default Type; // is a type-only export
export type { Type }; // is a type-only export